package com.zbkj.common.request.water;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "RzPackageRequest对象", description = "添加修改套餐请求对象")
public class RzPackageRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID", example = "1")
    private Integer id;

    @ApiModelProperty(value = "套餐名称", example = "基础套餐")
    @NotNull(message = "套餐名称不能为空")
    private String name;

    @ApiModelProperty(value = "套餐价格", example = "99.99")
    @NotNull(message = "套餐名称不能为空")
    private BigDecimal price;

    @ApiModelProperty(value = "套餐类型：0-默认 1-月卡/季卡/半年卡/年卡", example = "0")
    @NotNull(message = "套餐类型不能为空")
    @Range(min = 0, max = 1)
    private Integer type;

    @ApiModelProperty(value = "折扣", example = "0.85")
    private BigDecimal discountRate;

    @ApiModelProperty(value = "有效天数", example = "30")
    private Integer validTime;

    @ApiModelProperty(value = "是否推荐", example = "1")
    private Integer isRecommend;

    @ApiModelProperty(value = "是否删除", example = "0")
    private Boolean isDelete;

    @ApiModelProperty(value = "水量（袋）", example = "10")
    private Integer waterVolume;

}
